package com.duanyf.wiki.controller;


import com.duanyf.wiki.domain.Demo;
import com.duanyf.wiki.service.DemoService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @Author: duanyf
 * @DateTime: 2022/9/15 0015 22:46
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

  @Resource
  private DemoService demoService;

  @GetMapping("/list")
  public List<Demo> list(){
    return demoService.list();
  }
}
